﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ImportPszxToCurrentStudy.CUiImportPszxToCurrentStudyCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Resources;
using System.Windows;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;
using Tecnomatix.Engineering.Ui.WPF;


namespace DnProcessSimulateCommands.ImportPszxToCurrentStudy;

internal class CUiImportPszxToCurrentStudyCmd : TxButtonCommand
{
  private TxWindow importDlg;
  private CUiImportPszxToCurrentStudyEnabler m_enabler;

  public CUiImportPszxToCurrentStudyCmd()
  {
    this.m_enabler = new CUiImportPszxToCurrentStudyEnabler();
  }

  ~CUiImportPszxToCurrentStudyCmd()
  {
    try
    {
    }
    finally
    {
      // ISSUE: explicit finalizer call
      // ISSUE: explicit non-virtual call
      __nonvirtual (((object) this).Finalize());
    }
  }

  public virtual void Execute(object cmdParams)
  {
    this.importDlg = (TxWindow) new CUiImportPszToCurrentStudyDlg();
    ((CUiImportPszToCurrentStudyDlg) this.importDlg).Cmd = (TxButtonCommand) this;
    ((Window) this.importDlg).Show();
  }

  public virtual string Bitmap => "ImportPszxToCurrentStudy.Resources.ImportPszxIcon.bmp";

  public virtual string LargeBitmap
  {
    get => "ImportPszxToCurrentStudy.Resources.ImportPszxIcon_LARGE.png";
  }

  public virtual ITxImage Image
  {
    get => (ITxImage) TxImageManager.GetImageByKey("ImportPszxToCurrentStudy");
  }

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;

  public virtual string Category => this.GetResourceManager().GetString("IMPORT_PSZX_CMD_CATAGORY");

  public virtual string Description
  {
    get => this.GetResourceManager().GetString("IMPORT_PSZX_CMD_DESCRIPTION");
  }

  public virtual string Name => this.GetResourceManager().GetString("IMPORT_PSZX_CMD_NAME");

  public virtual string Tooltip => this.GetResourceManager().GetString("IMPORT_PSZX_CMD_TOOLTIP");

  private ResourceManager GetResourceManager()
  {
    return new ResourceManager("DnProcessSimulateCommands.ImportPszxToCurrentStudy.Resources.StringTable", ((object) this).GetType().Assembly);
  }
}
